using System;
using System.Collections.Generic;
using System.Text;

using Liberty.Domain.CaseManagement;
using Liberty.Domain.ServiceMemberManagement;

using Microsoft.VisualStudio.TestTools.UnitTesting;
//using NUnit.Framework.SyntaxHelpers;

namespace Tests.DomainTests.CaseManagement
{
    [TestClass()]
    public class CaseAssignmentTests : Object
    {
        #region Constants
        private const string
            INJURY_DESCRIPTION = "Test Injury Description",
            TEST_DATE = "5/6/2006 1:45:09";
        #endregion

        #region Setup and Teardown CaseAssignmentTests
        [TestInitialize()]
        public void SetupCaseAssignmentTests()
        {
        }

        [TestCleanup()]
        public void TeardownCaseAssignmentTests()
        {
        }
        #endregion

        #region Test Methods
        [TestMethod()]
        public void TestProperties()
        {
            DateTime startDate = DateTime.Parse(TEST_DATE);
            DateTime endDate = DateTime.Parse( TEST_DATE ).AddDays( 5 );

            CaseVolunteer aCaseVolunteer = CaseVolunteer.TestInstance();
             Case aCase = new Case();
            aCase = InitializeCase();

            CaseAssignment aCaseAssignment = new CaseAssignment();
            aCaseAssignment.Case = aCase;
            aCaseAssignment.CaseVolunteer = aCaseVolunteer;
            aCaseAssignment.EndDate = endDate;
            aCaseAssignment.StartDate = startDate;

            Assert.AreEqual( aCaseAssignment.CaseVolunteer, aCaseVolunteer );
            Assert.AreEqual( aCaseAssignment.Case, aCase );
            Assert.AreEqual( aCaseAssignment.StartDate, startDate );
            Assert.AreEqual( aCaseAssignment.EndDate, endDate );

        }
        #endregion

        #region Support Methods
        public Case InitializeCase()
        {            
            Case aCase = Case.TestInstance();
            return aCase;
        }
        #endregion

        #region Data Elements

        #endregion

    }
}

